@import './base.css';

/* 基础重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 0.28rem;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
  -webkit-text-size-adjust: 100% !important;
  text-size-adjust: 100% !important;
}

#app {
  max-width: 768px;
  margin: 0 auto;
  /* padding: 0.2rem; */
  font-weight: normal;
}

/* 适配工具类 */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.justify-center {
  justify-content: center;
}

.items-center {
  align-items: center;
}

/* 响应式断点 */
@media (max-width: 320px) {
  body {
    font-size: 0.24rem;
  }
}

@media (min-width: 414px) {
  body {
    font-size: 0.3rem;
  }
}

/* 链接样式 */
a,
.green {
  text-decoration: none;
  color: hsla(160, 100%, 37%, 1);
  transition: 0.4s;
  padding: 3px;
}

@media (hover: hover) {
  a:hover {
    background-color: hsla(160, 100%, 37%, 0.2);
  }
}

/* 桌面端适配 */
@media (min-width: 1024px) {
  body {
    display: flex;
    place-items: center;
    font-size: 0.28rem;
  }

  #app {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0 2rem;
    max-width: 1280px;
  }
}
